package org.sunxin.ch17.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class TestServlet extends HttpServlet
{   
    public void doPost(HttpServletRequest request, HttpServletResponse response) 
               throws IOException, ServletException
    {
        String content=request.getParameter("content");
        PrintWriter out=response.getWriter();
        out.println("这是Servlet测试<p>");
        out.println("内容是："+content);
        out.close();
    }
}
